﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using WineDAL;
using System.Collections;

namespace WineBLL
{
   public  class WineCommentBLL
    {
       WineCommentDAL dal = new WineCommentDAL();
       /// <summary>
       /// 显示评论
       /// </summary>
       /// <returns></returns>
       public ArrayList CommentShow(int id)
       {
           return dal.CommentShow(id);
       }
       /// <summary>
       /// 添加用户评论
       /// </summary>
       /// <param name="UsersID"></param>
       /// <param name="GoodsID"></param>
       /// <param name="CommentContent"></param>
       /// <param name="CommentStar"></param>
       /// <returns></returns>
       public int AddComments(int UsersID, int GoodsID, string CommentContent, int CommentStar)
       {
           return dal.AddComments(UsersID, GoodsID, CommentContent, CommentStar);
       }
    }
}
